package com.crm.consumerhystrixdashboard;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableHystrixDashboard // 图像化注解
/**
 * 服务监控：该服务监控消费端
 * 调用流程：consumer-hystrix-dashboard --> provider-dept-8001-hystrix
 *
 * 初次访问：http://localhost:9001/hystrix          检测是否成功启动
 * 然后访问：http://localhost:8001/hystrix.stream   服务监控的流，以文本的形式
 * http://localhost:9001/hystrix，图形化界面基本设置，将文本流转化为图形界面
 * */
public class ConsumerHystrixDashboardApplication {

    public static void main(String[] args) {
        SpringApplication.run(ConsumerHystrixDashboardApplication.class, args);
    }

}
